package com.yang.crawler.dto.data;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class ArticleColumnDTO implements Serializable {
    private String title;

    private String url;

    private String website;

    private String protocol;

    private List<ArticleLinkDTO> articleLinkDTOList = new ArrayList<>();

    public void addArticleLink(ArticleLinkDTO articleLinkDTO) {
        this.articleLinkDTOList.add(articleLinkDTO);
    }
}
